﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TNTInOutStockInvRptList.aspx.cs" Inherits="WMS6.Web.CustomizeReport.TNTInOutStockInvRptList" %>
<%@ PreviousPageType VirtualPath="~/CustomizeReport/TNTInOutStockInvRptQuery.aspx" %>
<%@ Register src="../UserControls/Pager.ascx" tagname="Pager" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>TNTInOutStockInvRptList</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
     <link href="../Css/style.css" type="text/css" rel="stylesheet" />
     <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script> 
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>    
    <script type="text/javascript">
    
      window.onload = function(){
            initListPage();
        }
        
        function returnSearch()
        {
            var from = document.getElementById("hdnFrom").value;
            if(from != "")
            {
                window.location.href = "TNTInOutStockInvRptQuery.aspx";
            }
            else
            {
                window.history.go(-1);
            }
        }
    </script>
</head>
<body>
    <form id="F16021" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lblTNTInOutStockInvRptList" runat="server" CssClass="label_header"  Text="TNT收发存库存报告" meta:resourcekey="lblUom"></asp:Label></td>
                      <td><asp:Button ID="btnRefresh" runat="server" CssClass="button" Enabled="False" 
                              Text="<%$Resources:ButtonResource,btnRefresh%>"  
                              onclick="btnRefresh_Click" /></td>
                    </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        <asp:UpdatePanel ID="up1" runat="server">
            <ContentTemplate>                
                
                 <div id="div_List">
                 <div id="div_List_msg">
                        <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
                    </div>
                    <asp:GridView ID="gvInOutStockInvRptList" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                        CssClass="gridview"  PageSize="20"   oninit="gvInOutStockInvRptList_Init" 
                            Width="1300px" onrowdatabound="gvInOutStockInvRptList_RowDataBound" 
                         onsorting="gvInOutStockInvRptList_Sorting" 
                         meta:resourcekey="gvInOutStockInvRptList"  >
                        <FooterStyle CssClass="GridViewFooterStyle" />
                        <RowStyle CssClass="GridViewRowStyle" />
                        <HeaderStyle CssClass="GridViewHeaderStyle" />
                        <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                        <Columns>
                            <asp:BoundField HeaderText="序号" FooterText="序号" 
                                meta:resourcekey="BoundField">
                                    <ItemStyle CssClass="GridViewRowWidth_40" />
                                </asp:BoundField>
                               
                                <asp:TemplateField meta:resourcekey="TemplateField">
                                    <HeaderTemplate>
                                        <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('15441','gvInOutStockInvRptList');" onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                        <asp:CheckBox ID="CheckBox1" runat="server" 
                                            onclick="selectAll(this,'gvInOutStockInvRptList');" 
                                            meta:resourcekey="CheckBox1" /> 
                                    </HeaderTemplate>
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chbSelect" runat="server" 
                                            meta:resourcekey="chbSelect" />
                                    </ItemTemplate>
                                    <FooterTemplate>
                                        <asp:CheckBox ID="CheckBox2" runat="server" 
                                            onclick="selectAll(this,'gvInOutStockInvRptList');" 
                                            meta:resourcekey="CheckBox2" /> 
                                    </FooterTemplate>
                                    <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                    <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50"/>
                                </asp:TemplateField>
                                 <asp:BoundField DataField="SKU_CLASS_ID" HeaderText="货品分类" 
                                FooterText="货品分类" SortExpression="SKU_CLASS_ID" 
                                meta:resourcekey="SKU_CLASS_ID">
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                 <asp:BoundField DataField="SKU_GROUP" HeaderText="货品分组" 
                                FooterText="货品分组" SortExpression="SKU_GROUP" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:BoundField DataField="SKU_ID" HeaderText="货品" FooterText="货品" 
                                SortExpression="SKU_ID" meta:resourcekey="SKU_ID" >
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:BoundField>
                                <asp:TemplateField FooterText="货品描述" HeaderText="货品描述" 
                                SortExpression="DESCR" meta:resourcekey="DESCR" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblSkuDescr" runat="server" 
                                            Text='<%# Eval("SKU_DESCR").ToString() %>' meta:resourcekey="lblSkuDescr"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_200" />       
                                 </asp:TemplateField>
                                 <asp:TemplateField FooterText="期初库存" HeaderText="期初库存" 
                                SortExpression="BEGIN_QTY" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblBEGIN_QTY" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("BEGINQTY").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="入库数量" HeaderText="入库数量" 
                                SortExpression="InBound_Qty" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblInBound_Qty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("InBound_Qty").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="报废数量" HeaderText="报废数量" 
                                SortExpression="SCRAP_QTY" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblSCRAP_QTY" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("SCRAP_QTY").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                                <asp:TemplateField FooterText="到期数量" HeaderText="到期数量" 
                                SortExpression="EXPIRED_QTY" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblEXPIRED_QTY" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("EXPIRED_QTY").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField><asp:TemplateField FooterText="出货数量" HeaderText="出货数量" 
                                SortExpression="OutBound_Qty" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblOutBound_Qty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("OutBound_Qty").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField><asp:TemplateField FooterText="当前库存" HeaderText="当前库存" 
                                SortExpression="Inv_Qty" >
                                    <ItemTemplate>
                                        <asp:Label ID="lblInv_Qty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("Inv_Qty").ToString()) %>' ></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>                                
                                <asp:TemplateField FooterText="差异量" HeaderText="差异量" 
                                SortExpression="OPEN_QTY" meta:resourcekey="OPEN_QTY">
                                    <ItemTemplate>
                                        <asp:Label ID="lblOpenQty" runat="server" 
                                            Text='<%# GetPreferenceDigit(Eval("OPEN_QTY").ToString()) %>' 
                                            meta:resourcekey="lblOpenQty"></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle CssClass="GridViewRowWidth_100" />
                                </asp:TemplateField>
                        </Columns>
                        
                    </asp:GridView>
                    <div>
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr style="height: 10px">
                                <td>
                                </td>
                            </tr>
                            <tr>
                                <td class="Result_01">
                                    总计：
                                </td>
                                <td class="Result_02">
                                    <table>
                                        <tr>
                                            <td style="margin-right: 20px;">
                                                &nbsp; &nbsp;
                                            </td>
                                             <td>
                                                <asp:Label ID="lblTotalBeginQty" runat="server" Text="期初库存:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalBeginQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>      
                                             <td>
                                                <asp:Label ID="lblTotalInBoundQty" runat="server" Text="入库数量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalInBoundQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>      
                                            <td>
                                                <asp:Label ID="lblTotalScrapQty" runat="server" Text="报废数量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalScrapQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>                                          
                                            <td>
                                                <asp:Label ID="lblTotalExpiredQty" runat="server" Text="到期数量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalExpiredQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>   
                                              <td>
                                                <asp:Label ID="lblTotalOutBoundQty" runat="server" Text="出货数量:" class="label"></asp:Label>
                                                <asp:Label ID="lblTotalOutBoundQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalInvQty" runat="server" Text="当前库存:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalInvQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                            <td>
                                                <asp:Label ID="lblTotalOpenQty" runat="server" Text="差异量:" class="label"></asp:Label><asp:Label
                                                    ID="lblTotalOpenQtyText" runat="server" Text="" class="label" Style="margin-right: 10px;"></asp:Label>
                                            </td>
                                                                                     
                                        </tr>
                                    </table>
                                </td>
                                <td class="Result_03">
                                </td>
                            </tr>
                            <tr style="height: 20px">
                                <td>
                                </td>
                            </tr>
                        </table>
                    </div>
                 </div>
                    <div id="div_pager">
                        <uc1:Pager ID="PagerFooter" runat="server"  OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click" OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click"/>
                    </div>
                <input type="hidden" runat="server" id="hdnFrom" />
                
            </ContentTemplate>
       </asp:UpdatePanel>
        <input type="hidden" id="hdnActionID" runat="server" />
        
        <div id="div_List_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:window.location.href='TNTInOutStockInvRptQuery.aspx';return false;"  />
                    </td>
                    <td>
                        <asp:Button ID="btnReSearch" runat="server" Text="<%$Resources:ButtonResource,btnReSearch%>" CssClass="button" Enabled="False" 
                            OnClientClick="javascript:returnSearch();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>" CssClass="button" Enabled="False" 
                           onclick="btnList_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>" CssClass="button" Enabled="False" 
                             onclick="btnExport_Click" />
                    </td>
                </tr>
            </table>
        </div>      
        
    </div>
    </form>
</body>
</html>
